<?php
/**
 * Created by PhpStorm.
 * User: Pico_Dragon
 * Date: 16/12/2014
 * Time: 11:38
 */
include "../function/helper.php";
include "../../db/dbConnect.php";
if($_SERVER['REQUEST_METHOD'] == 'GET' && $_GET['answer']) {

    $idq=escape($_GET['answer']);
    $content=escape($_GET['content']);
    $sql="update u_profile_answer
            set answer='".$content."'
            where idpr_answer = ".$idq;
    if(mysql_query($sql)){
        echo "Cập nhật thành công!";
    }else{
        echo mysql_error();
        exit();
    }
}